package com.example.x264cameraxpush;


import android.util.Log;

// native交互 推送数据
public class LivePush {


    static {
        System.loadLibrary("x264cameraxpush");
    }



    public native int native_init();
    public native int native_setVideoInfo(int width, int height, int fps, int bitrate);

    public native void native_start(String path);
    public native void native_pushVideo(byte[] data);
    public native void native_stop();
    public native void native_release();

    private void postData(byte[] data) {
        Log.i("david", "postData: "+data.length);
        FileUtils.writeBytes(data);
        FileUtils.writeContent(data);

    }
}
